const install = (Vue, vm) => {
	// 公共部分
	// let setting = (params) => vm.$u.post('setting', params);
	let upload = (params) => vm.$u.post('upload', params); //上传图片
	// let smsSend = (params) => vm.$u.get('system/user/sendAuthCode/'+params.phone); //发送验证码
    
	// let register = (params) => vm.$u.post('system/user/enrollR', params); //注册
    let miniapplogin = (params) => vm.$u.post('/addons/miniform/login/getWechatOpenid', params);//登录第一步
	let projectInfo = (params) => vm.$u.post('/addons/miniform/index/projectInfo', params);//项目详情
	let projectlist = (params) => vm.$u.post('/addons/miniform/index/project', params);//项目列表
	let paytMthod = (params) => vm.$u.post('/addons/miniform/user/paytMthod', params);//补充收款信息
	let myProject = (params) => vm.$u.post('/addons/miniform/index/myProject', params);//我的项目列表
	// 
	vm.$u.api = {
		miniapplogin,
		projectlist,
		projectInfo,
		paytMthod,
		myProject,
	};
}
export default {
	install
}
// let res = await this.$u.api.pickUpTheGoods({
// 	monadId:id
// });
// if(res.code == 200){
// 	this.$u.toast("提货成功");
// 	this.goodList = []
// 	this.getlist();
// }else{
// 	this.$u.toast("失败");
// }
//:src="ossThree(item.bigimage)"

// getClear(){
// 	this.list = []
// 	this.page = 1,
// 	this.status= "loadmore"
// 	this.getList()
// }
// userid:uni.getStorageSync('userid')
// :src="ossThree('/ui/twobg.png')"
// list: [],
// page: 1,
// limit: 10,
// last_page: 1,
// status: "loadmore",

{/* <u-loadmore :status="status" @loadmore="loadmore" /> */}

// async getList(){//列表数据
// 	let res = await this.$u.api.SearchHotel({
// 	  pagesize:this.limit,
// 	  pageindex:this.page
// 	});
// this.last_page = res.last_page;
// 			let list = res.data;
// 			this.list = this.page == 1 ? list : [...this.list, ...list];
// 			if (this.page >= this.last_page) {
// 				this.status = 'nomore';
// 			}
// 	}
	
// },
// loadmore() {
// 	let page = this.page;
// 	// let last_page = this.last_page;
// 	if (this.status == 'loadmore') {
// 		this.page++;
// 		this.getList();
// 	}
// },

// onReachBottom: function () {
// 	this.loadmore();
// },